import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from "@/views/Login"
import NotFound from "@/views/404"
import Home from "@/views/Home"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/404',
      name: '',
      component: NotFound
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path:"*",
      redirect:{path:"/404"}
    }
  ]
})
